import { request } from '@/sheep/request';

const route = {
  path: 'grouporder',
  name: 'seller.admin.grouporder',
  component: () => import('./index.vue'),
  meta: {
    title: '团购订单',
  },
};

const api = {
  list: (params) =>
    request({
      url: '/group/admin/order/list',
      method: 'GET',
      params,
    }),
  info: (id) =>
    request({
      url: `/group/admin/order/detail/${id}`,
      method: 'GET',
    }),
  checkDetails: (params) =>
    request({
      url: '/group/admin/write_off/list',
      method: 'GET',
      params,
    }),
  check:(params)=>
    request({
      url:'/group/admin/write_off/writeOff',
      method:'GET',
      params
    }),
  record:(id)=>
    request({
      url:`/group/admin/order/detailLog/${id}`,
      method:'GET'
    })
};

export { route, api };